package com.xxxx.server.pojo;

//import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhoubin
 * @since 2020-10-15
 */
//@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_employee_ec")
@ApiModel(value="EmployeeEc对象", description="员工奖惩类")
public class EmployeeEc implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
//    @ExcelProperty("id")
    private Integer id;

    @ApiModelProperty(value = "员工姓名")
//    @ExcelProperty(value = "员工姓名")
    @TableField(exist = false)
    private String name;

    @ApiModelProperty(value = "员工编号")
//    @ExcelProperty(value = "员工编号",index = 2)
    private Integer eid;

    @ApiModelProperty(value = "奖罚日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @ExcelProperty(value = "奖罚日期",index = 3)
    private String ecDate;

    @ApiModelProperty(value = "奖罚原因")
//    @ExcelProperty(value = "奖罚原因",index = 4)
    private String ecReason;

    @ApiModelProperty(value = "奖罚分")
//    @ExcelProperty(value = "奖罚分",index = 5)
    private Integer ecPoint;

    @ApiModelProperty(value = "奖罚类别，0：奖，1：罚")
//    @ExcelProperty(value = "奖罚类别，0：奖，1：罚",index = 6)
    private Integer ecType;

    @ApiModelProperty(value = "备注")
//    @ExcelProperty(value = "备注",index = 7)
    private String remark;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public String getEcDate() {
        return ecDate;
    }

    public void setEcDate(String ecDate) {
        this.ecDate = ecDate;
    }

    public String getEcReason() {
        return ecReason;
    }

    public void setEcReason(String ecReason) {
        this.ecReason = ecReason;
    }

    public Integer getEcPoint() {
        return ecPoint;
    }

    public void setEcPoint(Integer ecPoint) {
        this.ecPoint = ecPoint;
    }

    public Integer getEcType() {
        return ecType;
    }

    public void setEcType(Integer ecType) {
        this.ecType = ecType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "EmployeeEc{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", eid=" + eid +
                ", ecDate='" + ecDate + '\'' +
                ", ecReason='" + ecReason + '\'' +
                ", ecPoint=" + ecPoint +
                ", ecType=" + ecType +
                ", remark='" + remark + '\'' +
                '}';
    }
}
